package com.test.resulttofront;

public class ErrorResult extends RuntimeException {
    private Exception e;
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Exception getE() {
        return e;
    }

    public void setE(Exception e) {
        this.e = e;
    }

    public ErrorResult() {
    }

    public ErrorResult(Integer code, Exception e) {
        this.e = e;
        this.code = code;
    }
}
